package com.pet.shop.mappers.room;

import com.pet.shop.entity.room.HotelTime;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;

public interface HotelTimeMapper {

    int delete(Long id);

    int insert(HotelTime record);

    HotelTime get(Long id);

    int update(HotelTime record);

    List<HotelTime> queryByHotelId(Long hotelId);

    Set<Long> queryIdByHotelId(Long hotelId);

    /**
     *
     * @param hotelId
     * @param date
     * @return
     */
    List<HotelTime> queryHotelTimeWithQuantity(@Param("hotelId") Long hotelId, @Param("date") Date date);
}